var ModelFactory = function() {

};

ModelFactory.prototype.createModel = function(context, type) {
	var model = {
		type: type,
		id: "node_"+context.currentElementId
	};
	if(type=="task"){
		model["name"]="任务节点";
		model["width"]="160px";
	}else if(type=="service"){
		model["name"]="服务节点";
		model["width"]="160px";
	}else if(type=="decision"){
		model["name"]="决策节点";
		model["width"]="100px";
	}else if(type=="fork"){
		model["name"]="分支节点";
		model["width"]="100px";
	}else if(type=="join"){
		model["name"]="合并节点";
		model["width"]="100px";
	}
	return model;
};

export default new ModelFactory();
